package com.bai.localshop.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 商品和分类关联表
 */
@Data
@TableName("product_category_relation")
public class ProductCategoryRelation implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long productId;
    private Long categoryId;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}